import axios from '@/libs/api.request'
// 店面日营运_微信商城销售统计查询
export const wechatmallSalesDaily = (data) => {
  return axios.request({
    url: '/sales/crs/wechatmall/sales/daily',
    method: 'post',
    data: data
  })
}
// 店面日营运_营业项明细查询
export const itemDaily = (data) => {
  return axios.request({
    url: '/sales/crs/business/item/daily',
    method: 'post',
    data: data
  })
}
// 店面日运营分析统计查询
export const businessShopDaily = (data) => {
  return axios.request({
    url: '/sales/crs/business/shop/daily',
    method: 'post',
    data: data
  })
}
// 微信商城销售列表查询
export const wechatmallSalesList = (data) => {
  return axios.request({
    url: '/sales/crs/wechatmall/sales/list',
    method: 'post',
    data: data
  })
}
// 每日结账明细
export const turnoverList = (data) => {
  return axios.request({
    url: '/sales/crs/shop/turnover/list',
    method: 'post',
    data: data
  })
}
// 今日另收统计查询
export const statisticalDemand = (data) => {
  return axios.request({
    url: '/sales/crs/finance/addition/revenue/daily',
    method: 'post',
    data: data
  })
}
// 今日另收统计导出
export const revenueExport = (data) => {
  return axios.request({
    url: '/sales/crs/finance/addition/revenue/export',
    method: 'post',
    data: data
  })
}
// 今日另收新项目明细查询
export const bankcardList = (data) => {
  return axios.request({
    url: '/sales/crs/finance/addition/bankcard/list',
    method: 'post',
    data: data
  })
}
// 今日另收新项目明细导出
export const bankcardExport = (data) => {
  return axios.request({
    url: '/sales/crs/finance/addition/bankcard/export',
    method: 'post',
    data: data,
    responseType: 'blob'
  })
}
// 今日另收租赁明细查询
export const rentList = (data) => {
  return axios.request({
    url: '/sales/crs/finance/addition/rent/list',
    method: 'post',
    data: data
  })
}
// 今日另收租赁明细导出
export const rentExport = (data) => {
  return axios.request({
    url: '/sales/crs/finance/addition/rent/export',
    method: 'post',
    data: data,
    responseType: 'blob'
  })
}
// 今日另收团购明细查询
export const groupbuyingList = (data) => {
  return axios.request({
    url: '/sales/crs/finance/addition/groupbuying/list',
    method: 'post',
    data: data
  })
}
// 今日另收团购明细导出
export const groupbuyingExport = (data) => {
  return axios.request({
    url: '/sales/crs/finance/addition/groupbuying/export',
    method: 'post',
    data: data,
    responseType: 'blob'
  })
}
// 今日另收非会员卡押金明细查询
export const depositList = (data) => {
  return axios.request({
    url: '/sales/crs/finance/addition/customer/card/deposit/list',
    method: 'post',
    data: data
    // responseType: 'blob'
  })
}
// 今日另收非会员卡押金明细导出
export const depositExport = (data) => {
  return axios.request({
    url: '/sales/crs/finance/addition/customer/card/deposit/export',
    method: 'post',
    data: data,
    responseType: 'blob'
  })
}
// 店面营收统计查询
export const revenueDaily = (data) => {
  return axios.request({
    url: '/sales/crs/finance/shop/revenue/daily',
    method: 'post',
    data: data
  })
}
// 店面营收统计导出
export const revenueDailyExport = (data) => {
  return axios.request({
    url: '/sales/crs/finance/shop/revenue/export',
    method: 'post',
    data: data,
    responseType: 'blob'
  })
}
// 店面营收明细列表导出
export const revenueDailyDetailExport = (data) => {
  return axios.request({
    url: '/sales/crs/finance/shop/revenue/detail/export',
    method: 'post',
    data: data,
    responseType: 'blob'
  })
}
// 游戏币收入核对表
export const coinDaily = (data) => {
  return axios.request({
    url: '/sales/crs/finance/coin/daily',
    method: 'post',
    data: data
  })
}
// 进场费收入明细查询
export const slottingFeeList = (data) => {
  return axios.request({
    url: '/oms/merchant/crs/statistic/slotting/fee/daily',
    // baseURL: 'http://10.101.3.216:8081/oms/merchant/statistic/slotting/fee/daily',
    method: 'post',
    data: data
  })
}
// 进场费收入明细导出
export const slottingFeeListExport = (data) => {
  return axios.request({
    url: '/oms/merchant/crs/statistic/slotting/fee/export',
    // baseURL: 'http://10.101.3.216:8081/oms/merchant/statistic/slotting/fee/export',
    method: 'post',
    data: data,
    responseType: 'blob'
  })
}
// 游戏币收入核对表导出
export const coinDailyExport = (data) => {
  return axios.request({
    url: '/sales/crs/finance/coin/export',
    method: 'post',
    data: data,
    responseType: 'blob'
  })
}
// 游戏币收入核对明细查询
export const coinDetailDaily = (data) => {
  return axios.request({
    url: '/sales/crs/finance/coin/detail/daily',
    method: 'post',
    data: data
  })
}
// 游戏币收入核对明细导出
export const coinDetailDailyExport = (data) => {
  return axios.request({
    url: '/sales/crs/finance/coin/detail/export',
    method: 'post',
    data: data,
    responseType: 'blob'
  })
}
// 第三方支付统计
export const thirdPayment = (data) => {
  return axios.request({
    url: '/sales/crs/finance/third/payment/daily',
    method: 'post',
    data: data
  })
}
// 第三方支付统计导出功能
export const exportThird = (data) => {
  return axios.request({
    url: '/sales/crs/finance/third/payment/export',
    method: 'post',
    data: data,
    responseType: 'blob'
  })
}
//  财务报表_第三方支付_查询子商户列表
export const paySubmerchant = (data) => {
  return axios.request({
    url: '/sales/pay/submerchant/list',
    method: 'post',
    data: data
  })
}
// 财务报表_ CRS_游戏币流转差异__设备统计导出
export const coinDeviceExport = (data) => {
  return axios.request({
    url: '/oms/merchant/crs/statistic/device/coin/export',
    method: 'post',
    data: data,
    responseType: 'blob'
  })
}
// 财务报表_  CRS_游戏币流转差异__设备统计明细查询
export const coinDeviceDetail = (data) => {
  return axios.request({
    url: '/oms/merchant/crs/statistic/device/coin/detail/daily',
    method: 'post',
    data: data
  })
}
// 财务报表_CRS_游戏币流转差异_设备统计明细导出
export const coinDeviceDetailExport = (data) => {
  return axios.request({
    url: '/oms/merchant/crs/statistic/device/coin/detail/export',
    method: 'post',
    data: data,
    responseType: 'blob'
  })
}
// 财务报表_  CRS_游戏币流转差异__硬件设备统计查询
export const coinDeviceDaily = (data) => {
  return axios.request({
    url: '/oms/merchant/crs/statistic/device/coin/daily',
    method: 'post',
    data: data
  })
}
// 财务报表_  CRS_游戏币流转差异__销售核对统计查询
export const coinSaleDaily = (data) => {
  return axios.request({
    url: '/oms/merchant/statistic/sale/coin/daily',
    method: 'post',
    data: data
  })
}
// 财务报表_  CRS_游戏币流转差异__销售核对统计明细查询
export const coinSaleDetail = (data) => {
  return axios.request({
    url: '/oms/merchant/statistic/sale/coin/detail/daily',
    method: 'post',
    data: data
  })
}
// 财务报表_ CRS_游戏币流转差异__销售核对统计导出
export const coinSaleExport = (data) => {
  return axios.request({
    url: '/oms/merchant/statistic/sale/coin/export',
    method: 'post',
    data: data,
    responseType: 'blob'
  })
}
// 财务报表_  CRS_游戏币流转差异__销售核对统计明细导出
export const coinSaleDetailExport = (data) => {
  return axios.request({
    url: '/oms/merchant/statistic/sale/coin/detail/export',
    method: 'post',
    data: data,
    responseType: 'blob'
  })
}
// 财务报表_  CRS_游戏币流转差异__会员资产统计
export const coinMemberDily = (data) => {
  return axios.request({
    url: '/oms/merchant/crs/statistic/member/coin/daily',
    method: 'post',
    data: data
  })
}
// 财务报表_  CRS_游戏币流转差异__会员资产统计明细查询
export const coinMemberDetail = (data) => {
  return axios.request({
    url: '/oms/merchant/crs/statistic/member/coin/detail/daily',
    method: 'post',
    data: data
  })
}
// 财务报表_  CRS_游戏币流转差异__会员资产统计明细导出
export const coinMemberDetailExport = (data) => {
  return axios.request({
    url: '/oms/merchant/crs/statistic/member/coin/detail/export',
    method: 'post',
    data: data,
    responseType: 'blob'
  })
}
// 财务报表_  CRS_游戏币流转差异__会员资产统计导出
export const coinMemberDilyExport = (data) => {
  return axios.request({
    url: '/oms/merchant/crs/statistic/member/coin/export',
    method: 'post',
    data: data,
    responseType: 'blob'
  })
}
// 游戏劵收入统计查询
export const gameCouponDetail = (data) => {
  return axios.request({
    url: '/oms/merchant/crs/statistic/gamecoupon/daily',
    // baseURL: 'http://10.100.10.32:8080/oms/merchant/crs/statistic/gamecoupon/daily',
    method: 'post',
    data: data
  })
}
// 游戏劵收入统计导出
export const gameCouponDetailExport = (data) => {
  return axios.request({
    url: '/oms/merchant/crs/statistic/gamecoupon/export',
    // baseURL: 'http://10.100.10.32:8080/oms/merchant/crs/statistic/gamecoupon/export',
    method: 'post',
    data: data,
    responseType: 'blob'
  })
}
// 门店积分统计报表
export const assetShopPoint = (data) => {
  return axios.request({
    url: '/oms/merchant/crs/statistic/asset/shop/point',
    // baseURL: 'http://10.100.10.32:8080/oms/merchant/crs/statistic/gamecoupon/export',
    method: 'post',
    data: data
  })
}
// 门店积分统计报表
export const assetPoint = (data) => {
  return axios.request({
    url: '/oms/merchant/crs/statistic/asset/point',
    // baseURL: 'http://10.100.10.32:8080/oms/merchant/crs/statistic/gamecoupon/export',
    method: 'post',
    data: data
  })
}
// 彩票统计报表
export const assetLottery = (data) => {
  return axios.request({
    url: '/oms/merchant/crs/statistic/asset/lottery',
    // baseURL: 'http://10.100.10.32:8080/oms/merchant/crs/statistic/gamecoupon/export',
    method: 'post',
    data: data
  })
}
// /oms/merchant/crs/finance/third/payment/detail
// 第三方支付统计招商支付详情
export const paymentDetail = (data) => {
  return axios.request({
    url: '/oms/merchant/crs/finance/third/payment/detail',
    // baseURL: 'http://10.100.10.32:8080/oms/merchant/crs/statistic/gamecoupon/export',
    method: 'post',
    data: data
  })
}
